Q gallery Class
Plugin Creates gallery of of images
Constructor
Q gallery
-
[options]
Parameters:
-
[options]
Object optionaloptions is an Object with function parameters
-
[images]
Array optionalimages an array of objects containing object
{ src: String , caption: String , interval: Number, transition: Object}
-
[src]
String optionalsrc url of the image, will be fed through Q.url(). Required. -
[caption]
String optionalcaption for the image. Optional -
[interval]
Number optionalinterval number overriding default interval. Optional. -
[transition]
Object optionaltransition object overriding default transition. Optional.
-
-
[transition]
Object optionaltransition object that contains properties for making transitions
-
[interval]
Object optionalinterval object that contains properties for intervals
-
[duration]
Number optionalduration number of milliseconds between beginning times of consecutive transitions -
[ease]
String optionalease the type of easing function to apply from Q.Animation.ease object. -
[type]
String optionaltype is a what to do during this interval. Can be empty or 'kenburns'. -
[from]
Object optionalfrom is for "kenburns", an object containing "left", "top", "width" and "height" -
[from.left]
Number optionalleft number for "from" object -
[from.top]
Number optionaltop number for "from" object -
[from.width]
Number optionalwidth number for "from" object -
[from.height]
Number optionalheight number for "from" object -
[to]
Object optionalto is for "kenburns", an object containing "left", "top", "width" and "height" -
[to.left]
Number optionalleft number for "to" object -
[to.top]
Number optionaltop number for "to" object -
[to.width]
Number optionalwidth number for "to" object -
[to.height]
Number optionalheight number for "to" object
-
-
[autoplay]
Boolean optionalautoplay for whether to start playing the gallery when it loads.
-
[transitionToFirst]
Boolean optionaltransitionToFirst for whether to use a transition to show the first image.
-
[loop]
Boolean optionalloop for whether to show first image after last image is done.
-
[onLoad]
Q.Event optionalonLoad event fires when an image loads, also passes all loaded images
-
[onTransition]
Q.Event optionalonTransition event fires when an image loads, also passes all loaded images
-
Item Index
Methods
Methods
flip
-
[options]
This plugin Makes a flip animation using two block elements. The html structure must be a container with two nested block elements.
Parameters:
-
[options]
Object optionaloptions is an Object with function parameters